home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1997 December / PC Pro December 1997 CD-Rom coverdisc.iso / symantec / dbAnywh / JAVA.BIN / CLASSES.ZIP / sun / tools / debug / RemoteDebugger.class (.txt) < prev    next >
Encoding:
Java Class File  |  1996-12-14  |  2.7 KB  |  89 lines

  1. package sun.tools.debug;
  2.  
  3. import java.net.InetAddress;
  4.  
  5. public class RemoteDebugger {
  6.    private RemoteAgent agent;
  7.  
  8.    public RemoteDebugger(String var1, String var2, DebuggerCallback var3, boolean var4) throws Exception {
  9.       this.agent = new RemoteAgent(var1, var2, "", var3, var4);
  10.    }
  11.  
  12.    public RemoteDebugger(String var1, DebuggerCallback var2, boolean var3) throws Exception {
  13.       if (Agent.isDebuggable()) {
  14.          this.agent = new RemoteAgent(var2, var3);
  15.       } else {
  16.          this.agent = new RemoteAgent(InetAddress.getLocalHost().getHostName(), (String)null, var1, var2, var3);
  17.       }
  18.    }
  19.  
  20.    public void close() {
  21.       this.agent.close();
  22.    }
  23.  
  24.    public RemoteObject get(Integer var1) {
  25.       return this.agent.get(var1);
  26.    }
  27.  
  28.    public RemoteClass[] listClasses() throws Exception {
  29.       return this.agent.listClasses();
  30.    }
  31.  
  32.    public RemoteClass findClass(String var1) throws Exception {
  33.       return this.agent.findClass(var1);
  34.    }
  35.  
  36.    public RemoteThreadGroup[] listThreadGroups(RemoteThreadGroup var1) throws Exception {
  37.       return this.agent.listThreadGroups(var1);
  38.    }
  39.  
  40.    // $FF: renamed from: gc (sun.tools.debug.RemoteObject[]) void
  41.    public void method_0(RemoteObject[] var1) throws Exception {
  42.       this.agent.gc(var1);
  43.    }
  44.  
  45.    public void trace(boolean var1) throws Exception {
  46.       this.agent.trace(var1);
  47.    }
  48.  
  49.    public void itrace(boolean var1) throws Exception {
  50.       this.agent.itrace(var1);
  51.    }
  52.  
  53.    public int totalMemory() throws Exception {
  54.       return this.agent.totalMemory();
  55.    }
  56.  
  57.    public int freeMemory() throws Exception {
  58.       return this.agent.freeMemory();
  59.    }
  60.  
  61.    public RemoteThreadGroup run(int var1, String[] var2) throws Exception {
  62.       return this.agent.run(var1, var2);
  63.    }
  64.  
  65.    public String[] listBreakpoints() throws Exception {
  66.       return this.agent.listBreakpoints();
  67.    }
  68.  
  69.    public String[] getExceptionCatchList() throws Exception {
  70.       return this.agent.getExceptionCatchList();
  71.    }
  72.  
  73.    public String getSourcePath() throws Exception {
  74.       return this.agent.getSourcePath();
  75.    }
  76.  
  77.    public void setSourcePath(String var1) throws Exception {
  78.       this.agent.setSourcePath(var1);
  79.    }
  80.  
  81.    public void addSystemThread() {
  82.       Agent.addSystemThread(Thread.currentThread());
  83.    }
  84.  
  85.    public void addSystemThread(Thread var1) {
  86.       Agent.addSystemThread(var1);
  87.    }
  88. }
  89.